<div ng-controller="memberCtrl">
    <div class="x_panel" >
        <div class="form-inline">
            <div class="form-group">
                <label>激活码：</label>
                <input type="text" ng-model="search.phone"  class="form-control" />
            </div>

            <div class="form-group">
                <label>状态：</label>
                <select class="form-control" ng-model="search.status"
                        ng-options="o[0] as o[1] for o in $root.memberStatusDict">
                    <option value="">--请选择--</option>
                </select>
            </div>
            <button class="btn btn-primary" ng-click="find(1)" >查询</button>
            <button class="btn btn-default" ng-click="search={}" >重置</button>
            <button class="btn btn-primary pull-right" ng-click="uploadMember()" >导入</button>
        </div>
    </div>
    <table class="table table-bordered table-striped table-hover" >
        <thead class="title">
        <tr>
            <th class="text-center">NO</th>
            <th>激活码</th>
            <th>状态</th>
            <th>添加时间</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-if="pageModel.data.length == 0">
            <td colspan="100" class="text-center">暂无记录</td>
        </tr>
        <tr ng-repeat="item in pageModel.data">
            <td class="text-center">{{$index + 1+pageModel.pageSize*pageModel.pageIndex}}</td>
            <td>{{item.content}}</td>
            <td>{{item.delete_flag|keyToValue:memberStatusDict}}</td>
            <td>{{item.createTime|date:'yyyy-MM-dd'}}</td>
        </tr>
        </tbody>
    </table>
    <div class="page-footer clearfix" >
        <page page-model="pageModel"></page>
    </div>
</div>